<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
    <title>房屋信息修改</title>
  </head>
   <script type="text/javascript">
  	function checkForm(){
  		var form = document.getElementById("form");
  		form.submit();
  		var submit1 = document.getElementById("submit");
  		submit1.disabled = true;
  		
  	}
  </script>
  <body>
  	<div align="center">
	    <form id="form" name="form" action="<%=request.getContextPath() %>/room/room!update.action" method="post">
	    	<table border="0" cellpadding="0" width="50%" align="center">
	    		<tr>
	    			<td width="20%">房屋描述:</td>
	    			<td align="left" colspan="3">
	    				<input type="hidden" name="room.roomId" " value="${room.roomId}>
	    				<input name="room.roomName" type="text" id="room.roomName" size="60" maxlength="50" value="${room.roomName}"/>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">出租金额:</td><td align="left"><input name="room.rentPrice" type="text" id="room.rentPrice"  value="${room.rentPrice}"/></td>
	    			<td width="20%">房屋面积:</td><td align="left"><input name="room.roomSize" type="text" id="room.roomSize" value="${room.roomSize}"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">楼层:</td><td align="left"><input name="room.floor" type="text" id="room.floor"  value="${room.floor}" /></td>
	    			<td width="20%">房间号:</td><td align="left"><input name="room.roomNum" type="text" id="room.roomNum"  value="${room.roomNum}"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">户型:</td><td align="left"><input name="room.roomType" type="text" id="room.roomType" value="${room.roomType}" /></td>
	    			<td width="20%">阳台个数:</td><td align="left">
	    				<select name="room.balconyNum" id="room.balconyNum">
	    					<option value="0" <s:if test="%{room.balconyNum == 0}">selected</s:if>>没有</option>
	    					<option value="1" <s:if test="%{room.balconyNum == 1}">selected</s:if>>1个</option>
	    					<option value="2" <s:if test="%{room.balconyNum == 2}">selected</s:if>>2个</option>
	    					<option value="3" <s:if test="%{room.balconyNum == 3}">selected</s:if>>3个</option>
	    				</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">是否有厨房:</td><td align="left">
	    				<select name="room.isCookhouse" id="room.isCookhouse">
	    					<option value="0" <s:if test="%{room.isCookhouse == 0}">selected</s:if>>没有</option>
	    					<option value="1" <s:if test="%{room.isCookhouse == 1}">selected</s:if>>有</option>
	    				</select>
	    			</td>
	    			<td width="20%">厕所个数:</td><td align="left">
	    				<select name="room.toiletNum" id="room.toiletNum">
	    					<option value="0" <s:if test="%{room.toiletNum == 0}">selected</s:if>>共用</option>
	    					<option value="1" <s:if test="%{room.toiletNum == 1}">selected</s:if>>1个</option>
	    					<option value="2" <s:if test="%{room.toiletNum == 2}">selected</s:if>>2个</option>
	    					<option value="3" <s:if test="%{room.toiletNum == 3}">selected</s:if>>3个</option>
	    					<option value="4" <s:if test="%{room.toiletNum == 4}">selected</s:if>>4个</option>
	    				</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">光线星级:</td><td align="left">
	    				<select name="room.sunLine" id="room.sunLine">
	    					<option value="1" <s:if test="%{room.sunLine == 1}">selected</s:if>>一星</option>
	    					<option value="2" <s:if test="%{room.sunLine == 2}">selected</s:if>>二星</option>
	    					<option value="3" <s:if test="%{room.sunLine == 3}">selected</s:if>>三星</option>
	    					<option value="4" <s:if test="%{room.sunLine == 4}">selected</s:if>>四星</option>
	    					<option value="5" <s:if test="%{room.sunLine == 5}">selected</s:if>>五星</option>
	    				</select>
	    			</td>
	    			<td width="20%">手机信号:</td><td align="left">
	    				<select name="room.phoneLevel" id="room.phoneLevel">
	    					<option value="1" <s:if test="%{room.phoneLevel == 1}">selected</s:if>>一星</option>
	    					<option value="2" <s:if test="%{room.phoneLevel == 2}">selected</s:if>>二星</option>
	    					<option value="3" <s:if test="%{room.phoneLevel == 3}">selected</s:if>>三星</option>
	    					<option value="4" <s:if test="%{room.phoneLevel == 4}">selected</s:if>>四星</option>
	    					<option value="5" <s:if test="%{room.phoneLevel == 5}">selected</s:if>>五星</option>
	    				</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">网络方式:</td><td align="left">
	    				<select name="room.network" id="room.network">
	    					<option value="0" <s:if test="%{room.network == 0}">selected</s:if>>小区网</option>
	    					<option value="1" <s:if test="%{room.network == 1}">selected</s:if>>有宽带</option>
	    					<option value="3" <s:if test="%{room.network == 3}">selected</s:if>>自己联系</option>
	    				</select>
	    			</td>
	    			<td width="20%">环境级别:</td><td align="left">
	    				<select name="room.envLevel" id="room.envLevel">
	    					<option value="1" <s:if test="%{room.envLevel == 1}">selected</s:if>>一级</option>
	    					<option value="2" <s:if test="%{room.envLevel == 2}">selected</s:if>>二级</option>
	    					<option value="3" <s:if test="%{room.envLevel == 3}">selected</s:if>>三级</option>
	    					<option value="4" <s:if test="%{room.envLevel == 4}">selected</s:if>>四级</option>
	    					<option value="5" <s:if test="%{room.envLevel == 5}">selected</s:if>>五级</option>
	    				</select>
	    			</td>
	    		</tr>
	    		
	    		<tr>
	    			<td width="20%">出租类型:</td><td align="left">
	    				<select name="room.rentType" id="room.rentType">
	    					<option value="0" <s:if test="%{room.rentType == 0}">selected</s:if>>整租</option>
	    					<option value="1" <s:if test="%{room.rentType == 1}">selected</s:if>>合租</option>
	    				</select>
	    			</td>
	    			<td width="20%">押金类型:</td><td align="left">
	    				<select name="room.guaranteeType" id="room.guaranteeType">
	    					<option value="1" <s:if test="%{room.guaranteeType == 1}">selected</s:if>>押一付一</option>
	    					<option value="2" <s:if test="%{room.guaranteeType == 2}">selected</s:if>>押二付一</option>
	    					<option value="3" <s:if test="%{room.guaranteeType == 3}">selected</s:if>>押三付一</option>
	    				</select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="20%">详细地址:</td><td align="left" colspan="3"><input name="room.roomAddress" type="text" id="room.roomAddress" size="60" maxlength="100" value="${room.roomAddress}" /></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">介绍:</td><td align="left" colspan="3"><textarea name="room.roomDesc" id="room.roomDesc" cols="40" rows="4" >${room.roomDesc}</textarea></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">房屋图片:</td><td align="left" colspan="3"><input name="roomPic" type="file" id="roomPic"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">家电配置:</td><td align="left" colspan="3"><input name="room.household" type="text" id="room.household" size="60" maxlength="50" value="${room.household}" /></td>
	    		</tr>
				<tr align="center"> <td colspan="4"><br><input type="submit"  id="submit" value="提交" /></td></tr>
			</table>				
	    </form>
    </div>
  </body>
</html>
